from selenium.webdriver.common.by import By
# 按页面封装DBshop的页面元素，将元素和操作步骤分离
class Public():
    Link_login = (By.LINK_TEXT,'登录')
    input_account =(By.ID,'loginAccount')
    input_password =(By.ID,'loginPassword')
    button_login=(By.XPATH,'//button[text()="会员登录"]')

    link_register=(By.LINK_TEXT,'注册')
    register_name=(By.ID,'userName')
    register_password=(By.ID,'userPassword')
    re_password=(By.ID,'userComPassword')
    register_email=(By.ID,'userEmail')
    register_agreement=(By.ID,'agreement')
    register_agree=(By.XPATH,'//button[text()="提交注册用户"]')
    quit=(By.LINK_TEXT,'退出')
